package com.ddlaw.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddlaw.dao.LawyerDao;
import com.ddlaw.entity.TLawyer;
import com.ddlaw.entity.TLawyerApplyCustom;
import com.ddlaw.entity.TLawyerDetailCustom;
import com.ddlaw.entity.TLawyerServiceType;
import com.ddlaw.entity.TProvince;
import com.ddlaw.entity.TStudentDetaiCustom;
import com.ddlaw.service.LawyerService;
@Service
@Transactional
public class LawyerServiceImpl implements LawyerService{

	@Resource
	LawyerDao lawyerDao;
	
	@Override
	public List<TLawyerApplyCustom> getauditWaitLawyer() {
		// TODO Auto-generated method stub
		return lawyerDao.getauditWaitLawyer();
	}

	@Override
	public List<TLawyerDetailCustom> getLawyers() {
		// TODO Auto-generated method stub
		return lawyerDao.getLawyers();
	}

	@Override
	public TLawyerApplyCustom getAuditWaitLawyerById(int applyId) {
		// TODO Auto-generated method stub
		return lawyerDao.getAuditWaitLawyerById(applyId);
	}

	@Override
	public int addLawyer(TLawyerDetailCustom detail) {
		// TODO Auto-generated method stub
		return lawyerDao.addLawyer(detail);
	}

	@Override
	public int addAndGetId(TLawyer lawyer) {
		// TODO Auto-generated method stub
		return lawyerDao.addAndGetId(lawyer);
	}

	@Override
	public int deleteById(int applyId) {
		// TODO Auto-generated method stub
		return lawyerDao.deleteById(applyId);
	}

	@Override
	public int updateState(int state, int lawyerId) {
		// TODO Auto-generated method stub
		return lawyerDao.updateState(state, lawyerId);
	}

	@Override
	public List<TLawyerServiceType> getServiceType() {
		// TODO Auto-generated method stub
		return lawyerDao.getServiceType();
	}

	@Override
	public List<TLawyerDetailCustom> getSearchLawyer(int serviceType,int begin,int workYears,int region) {
		// TODO Auto-generated method stub
		return lawyerDao.getSearchLawyer(serviceType, begin, workYears, region);
	}

	@Override
	public List<TProvince> getProvince() {
		// TODO Auto-generated method stub
		return lawyerDao.getProvince();
	}

	@Override
	public TLawyerDetailCustom getLawyerDetail(int lawyerId) {
		// TODO Auto-generated method stub
		return lawyerDao.getLawyerDetail(lawyerId);
	}

	@Override
	public int updateLawyer(TLawyerDetailCustom detailCustom) {
		// TODO Auto-generated method stub
		return lawyerDao.updateLawyer(detailCustom);
	}

	@Override
	public List<TStudentDetaiCustom> getStudentApply() {
		// TODO Auto-generated method stub
		return lawyerDao.getStudentApply();
	}

	@Override
	public TStudentDetaiCustom getStuById(int applyId) {
		// TODO Auto-generated method stub
		return lawyerDao.getStuById(applyId);
	}

	@Override
	public int deleteStuById(int applyId) {
		// TODO Auto-generated method stub
		return lawyerDao.deleteStuById(applyId);
	}

	@Override
	public int addStuLawyer(TStudentDetaiCustom student) {
		// TODO Auto-generated method stub
		return lawyerDao.addStuLawyer(student);
	}

	@Override
	public List<TStudentDetaiCustom> getStus() {
		// TODO Auto-generated method stub
		return lawyerDao.getStus();
	}

	@Override
	public List<TStudentDetaiCustom> getSearchStu(int serviceType, int begin,
			int workYears, int region) {
		// TODO Auto-generated method stub
		return lawyerDao.getSearchStu(serviceType, begin, workYears, region);
	}

	@Override
	public TStudentDetaiCustom getStuDetail(int lawyerId) {
		// TODO Auto-generated method stub
		return lawyerDao.getStuDetail(lawyerId);
	}

	@Override
	public int updateStu(TStudentDetaiCustom stu) {
		// TODO Auto-generated method stub
		return lawyerDao.updateStu(stu);
	}

	
}
